package org.example.myleet.p881;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(1 == solution.numRescueBoats(new int[]{1}, 2));
        Assert.isTrue(1 == solution.numRescueBoats(new int[]{1,2}, 3));
        Assert.isTrue(3 == solution.numRescueBoats(new int[]{3,2,2,1}, 3));
        Assert.isTrue(4 == solution.numRescueBoats(new int[]{3,5,3,4}, 5));
        Assert.isTrue(8 == solution.numRescueBoats(new int[]{1,2,21,24,1,23,4,5,6,7,7,8,20,9,10}, 25));
    }
}
